package com.hhh.corejava.code02_运算符;

import java.util.Scanner;

/**
 * @autor 黄焕晖
 * @date 2025年10月19日15:15
 * 从控制台输入三门课程Java，Web,Mysql的成绩，计算三门课程的总分与平均分
 **/
public class Test06_练习 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入Java成绩：");
        double javaScore = sc.nextDouble();
        System.out.print("请输入Web成绩：");
        double webScore = sc.nextDouble();
        System.out.print("请输入Mysql成绩：");
        double mysqlScore = sc.nextDouble();

        double totalScore = javaScore +webScore+mysqlScore;
       double averageScore = totalScore/3;
        System.out.println("totalScore = " + totalScore);
        System.out.println("averageScore = " + averageScore);
    }
}
